import { createRouter, createWebHistory } from 'vue-router'


import { useRoute } from 'vue-router'

const home = () => import("../view/home.vue")    //懒加载
const login = () => import("../view/login.vue")
const manager=()=>import("../view/managerhome.vue")
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
    
      {
        path: '/',
        name: 'login',
        component: login
      },
    
      {
        path: '/home',
        name: 'home',
        component: home
      },
      {
        path: '/manager',
        name: 'manager',
        component: manager
      },
      
    ]
  })
  
  export default router






